//
//  ReadMyLastDetailViewcell.m
//  WYnewsss
//
//  Created by lanou on 16/4/26.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "ReadMyLastDetailViewcell.h"
#import "ReadMyDetailModel.h"
#import <UIImageView+WebCache.h>
@implementation ReadMyLastDetailViewcell
-(void)setDataWithModel:(ReadMyDetailModel *)model{
    [_imgImageView sd_setImageWithURL:[NSURL URLWithString:model.img]];
    _tnameLabel.text=model.tname;
    _subnumLabel.text=model.subnum;
    if (model.img.length==0) {
        self.distance.constant=0;
    }
}
- (IBAction)addButton:(id)sender {
    
    
}


//- (void)awakeFromNib {
//    [self.addButton addTarget:self action:@selector(addBtnClick) forControlEvents:UIControlEventTouchUpInside];
//}

//-(void)addBtnClick {
//    if (self.myBlock) {
//        self.myBlock();
//    }
//}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
